how to iterate over list of string array in java